<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" rel="stylesheet" href="../css/mycss.css" />
<title>个人空间</title>
</head>
<script type="text/javascript" src="../js/privyAdmin.js"></script>
<c:if test="${pass==null}"><!--未登录跳转  -->
	<c:redirect url="http://localhost:8080/SSMFrame/login.htm" />
</c:if>
<body style="text-align: center;">
	<a class="l" href="http://localhost:8080/SSMFrame/jsp/home.jsp">返回主页</a>
	<a class="r" href="http://localhost:8080/SSMFrame/exit.do">退出登录</a>
	<br>
	<a href="upload.htm"><button>上传头像</button></a>&emsp;
	<button onclick="toinput()">修改资料</button>
	<p></p>
	<img src="../img/portrait/${pass.name }.jpg">
	<form action="update.do" id="fms" onsubmit="return checkForm1()">
		<table align="center">
			<tr>
				<td id="td_r">用户名:<input readonly="readonly" type="text"
					name="name" value="${pass.name }" /></td>
				<td></td>
			<tr>
				<td id="td_r">年龄:<input readonly="readonly" type="text"
					name="age" id="age1" value="${pass.age }"></td>
				<td><span id="age2"></span></td>
			</tr>
			<tr>
				<td id="td_r">邮箱:<input readonly="readonly" type="text"
					name="email" id="email1" value="${pass.email }"></td>
				<td><span id="email2"></span></td>
			</tr>
			<tr>
				<td id="td_r">性别:<input readonly="readonly" type="text"
					name="sex" value="${pass.sex}" />
				</td>
			</tr>
			<tr>
				<td id="td_r">身高:<input readonly="readonly" type="text"
					name="height" value="${pass.height }" />
				</td>
				<td>cm<span id="height2"></span></td>
			</tr>
			<tr>
				<td id="td_r">体重:<input readonly="readonly" type="text"
					name="weight" value="${pass.weight }" />
				</td>
				<td>kg</td>
			</tr>

			<tr>
				<td id="td_r"><input readonly="readonly" type="submit"></td>
			</tr>
		</table>
	</form>
	<span id="msg">${msg}</span>
	<c:remove var="msg"/>
</body>
</html>